import requests from "./request";
import type { userInfoType } from "../store/modules/login/type";

// 手机号登录
export const mobilePasswordLogin = (mobile: string, password: string) =>
  requests<{ mobile: string, password: string }, userInfoType>({
    url: '/user/password/login',
    method: 'post',
    data: { mobile, password }, // 参数通过请求体发送
  });
